<?php
require_once "checklogin.php";
require_once "../lib/MySQLDB.class.php";
$db=MySQLDB::getInstance();
$data["newsID"]=$_GET["newsID"];
$sql="delete from newsinfo where newsID=?";
$res=$db->query($sql,"i",$data);
if($res){
    layerAlert("新闻删除成功！",1,"newsList.php");
}else{
    layerAlert("新闻删除失败！",5,"newsList.php");
}